<div>
	<button onclick="sendMsg('Hoy');">Send msg</button>
</div>

<script>
	var webSocket = new WebSocket("ws://localhost:8080/ishare/ws/basic");
	function sendMsg(val){
		webSocket.send(val);
	}
	webSocket.onmessage = function(evt){
		alert(evt.data);
	};
</script>

